package com.study.ssm.annotation02.four;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

/**
 * @author zhoujunlin
 * @date 2023年07月27日 10:26
 * @desc
 */
@Data
@Component
/*
<context:property-placeholder location="classpath:mybatis/db.properties"/>
* */
@PropertySource("classpath:/annotation02/four.properties")
public class Account {

    @Value("${id}")
    private int id;

    @Value("${name}")
    private String name;

}
